<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2018/11/21
  Time: 14:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path ;
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
    <link rel="stylesheet" href="/static/commons/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/static/css/public.css" media="all" />
</head>
<body class="loginBody">
<form class="layui-form" action="/system-user/login">
    <div class="login_face"><img src="/static/images/face.jpg" class="userAvatar"></div>
    <div class="layui-form-item input-item">
        <label for="logName">用户名</label>
        <input type="text" placeholder="请输入用户名" autocomplete="off" id="logName" name="logName" class="layui-input" lay-verify="required">
    </div>
    <div class="layui-form-item input-item">
        <label for="logPwd">密码</label>
        <input type="password" placeholder="请输入密码" autocomplete="off" id="logPwd" name="logPwd" class="layui-input" lay-verify="required">
    </div>
    <div class="layui-form-item input-item" id="imgCode">
        <div class="layui-col-md9">
        <label for="code">验证码</label>
        <input type="text" placeholder="请输入验证码" autocomplete="off" id="code" name="code" class="layui-input"></div>
        <div class="layui-col-md3"><img src="/system-user/code" id="img" ></div>
    </div>

    <div class="layui-form-item">
        <button class="layui-btn layui-block" lay-filter="login" lay-submit>登录</button>
    </div>
</form>
<span id="tips" style="display: none">${msg}</span>
<script type="text/javascript" src="/static/commons/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/static/js/login.js"></script>
</body>
</html>
